Repository navigation
refactor: unify GTA V world meta writes onto snapshot-free layered schemas and typed CMapData (desloppify wave 5F) - #117
Merged
Conversation
…hemas and typed CMapData (desloppify wave 5F)
- Make or_world_gta5::write::synthesise snapshot-free by layering
type_tables::of_layout(layout) with declared world_types schemas and any
installed snapshot via type_tables::layered, so write::encode and
WorkingSet::finish no longer require a staged schema snapshot.
- Add typed ContentFlags::of_typed, extents::compute_typed, validate::check_typed,
and write::{refuse_if_broken_typed, apply_flags_typed, apply_extents_typed}
sharing the exact derivation logic with the MetaInstance path.
- Update create::map_file to apply flags, extents, and validation directly on
typed CMapData before a single map.to_bytes() call, eliminating the
serialize-then-reparse MetaInstance round trip.
- Add snapshot-free unit tests in write.rs and create.rs and remove stale
snapshot-required skip guards in or-world-gta5 integration tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves
incomplete_migration::gta5_world_dual_meta_stacks(wave 5F):or_world_gta5::write::synthesiseto layertype_tables::of_layout(layout)withor_io::meta::typed::world_types::declared()and any installed snapshot viatype_tables::layered, makingwrite::encodeandWorkingSet::finishwork snapshot-free just like typed metadata.ContentFlags::of_typed,extents::compute_typed,validate::check_typed, andwrite::{refuse_if_broken_typed, apply_flags_typed, apply_extents_typed}sharing single implementations with theMetaInstancehelpers.parse_meta_binary_full+write::encoderound trip increate::map_file, validating and deriving flags/extents directly on typedCMapDatabefore a singlemap.to_bytes()call.a_prefab_round_trips_every_mapandexecuting_a_plan_keeps_every_link, and added 3 snapshot-free unit tests.Verification
just ready: 3,412 tests passed in 306 binaries, 0 clippy regressions (only the 4 pre-existingorigin/mainfailures).or-world-gta5passed underOPENRAGE_SCHEMA=none.